<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:1px;">
  <t:datagrid name="saleDetailList" title="销售明细表" actionUrl="saleController.do?datagrid"  idField="id"  fit="true" queryMode="group" autoLoadData="false" pagination="false">
   <t:dgCol title="编号" field="id" hidden="false" ></t:dgCol>
   <t:dgCol title="日期" field="FDate"  hidden="false" formatter="yyyy-MM-dd"   isDate="true" query="true" queryMode="group"></t:dgCol>
   <t:dgCol title="物料名称" field="FItemName"  hidden="false" query="true" dictionary="GZ"></t:dgCol>
   <t:dgCol title="规格" field="FModel" hidden="false" query="true" queryMode="group"></t:dgCol>
   <t:dgCol title="客户名称" field="FName" query="true"></t:dgCol>
   <t:dgCol title="重量" field="sum_qty" ></t:dgCol>
   <t:dgCol title="金额" field="sum_amount"></t:dgCol>
	<t:dgToolBar title="导出"  icon="icon-print"    onclick="export2()"   operationCode="export"></t:dgToolBar>
  </t:datagrid>
  </div>
</div>


<script type="text/javascript" charset="utf-8">
	/*
	 *	excel导出
	 */
	function export2() {
		export1("saleController.do?export_xsmx","saleDetailList");
	}
	
	
	$("#saleDetailList_FName").css('width','150px');
</script>

